using B.S.RbacData.ErrorCode;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace B.S.RbacData.Write.API.Applications.Commands.Traceabilitys
{
    /// <summary>
    /// 导出溯源码QR码命令
    /// </summary>
    public class ExportQRCodeCommand : IRequest<byte[]>
    {
        /// <summary>
        /// 产品ID
        /// </summary>
        [Required(ErrorMessage = "产品ID不能为空")]
        public int ProductId { get; set; }

        /// <summary>
        /// 导出数量
        /// </summary>
        [Required(ErrorMessage = "导出数量不能为空")]
    
        public int Quantity { get; set; }
    }
} 